<template>
  <!--批属性-->
  <div id="LotTableDetails">
    <g-details
      :detailData="data.detailData"
      :inputConfig="inputConfig"
      ref="input"
    ></g-details>
  </div>
</template>

<script>
import baseMixin from "@/mixins/BaseMixin";

export default {
  name: "LotTableDetails",
  mixins: [baseMixin],
  props: {
    data: {
      type: Object,
    },
  },
  data() {
    return {};
  },
  computed: {
    inputConfig() {
      let flag = this.data.detailData.status === "0" ? false : true;
      return [
        {
          type: "input",
          label: this.$t('in.externallot'),
          disabled: flag,
          props: "externallot",
        },
        {
          type: "checkbox",
          label: this.$t('in.matchlottable'),
          disabled: flag,
          props: "matchlottable",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "01" }),
          disabled: flag,
          props: "lottable01",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "02" }),
          disabled: flag,
          props: "lottable02",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "03" }),
          disabled: flag,
          props: "lottable03",
        },
        {
          type: "date",
          label: this.$t('in.lottable04'),
          disabled: flag,
          props: "lottable04",
        },
        {
          type: "date",
          label: this.$t('in.lottable05'),
          disabled: flag,
          props: "lottable05",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "06" }),
          disabled: flag,
          props: "lottable06",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "07" }),
          disabled: flag,
          props: "lottable07",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "08" }),
          disabled: flag,
          props: "lottable08",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "09" }),
          disabled: flag,
          props: "lottable09",
        },
        {
          type: "input",
          label: this.$t("config.batchProp", { no: "10" }),
          disabled: flag,
          props: "lottable10",
        },
        {
          type: "date",
          label: this.$t('in.lottable11'),
          disabled: flag,
          props: "lottable11",
        },
        {
          type: "date",
          label: this.$t('in.lottable12'),
          disabled: flag,
          props: "lottable12",
        },
      ];
    },
  },
  methods: {},
  mounted() {},
  watch: {},
};
</script>

<style scoped></style>
